package org.buptsse.utils;

import java.util.LinkedList;

import org.buptsse.entity.AddressLocation;
import org.buptsse.entity.NearbyBookItem;

import android.R.integer;

public class APPConstant {

	public static final String PROJECT_NAME = "CLOUDLEARN";
	//默认搜索范围
	public static final String DefaultSearchDistance="3000";
	
	public static LinkedList<NearbyBookItem> list;
	
	//message type
	public static final int LoginFinish=0;
	public static final int LoginError=1;
	public static final int RegistFinish=2;
	public static final int RegistError=3;
	public static final int NetUnavailable=4;
	public static final int UploadPhotoFinish=5;
	public static final int UploadPhotoError=6;
	public static final int UploadUserDataFinish=7;
	public static final int UploadUserDataError=8;
	public static final int getUserDataFinish=9;
	public static final int getUserDataError=10;
	public static final int NewPasswordNotSame=11;
	public static final int ChangePasswordError=12;
	public static final int ChangePasswordFinish=13;
	public static final int getBookInfoFinish=14;
	public static final int getBookInfoError=15;
	public static final int publishBookFinish=16;
	public static final int publishBookError=17;
	public static final int dismissProgressDialog=18;
	public static final int getDealListFinish=19;
	public static final int getDealListError=20;
	public static final int showWaittingDialog=21;
	public static final int getDealDetailFinish=22;
	public static final int getDealDetailError=23;
	//接受订单
	public static final int acceptDealFinish=25;
	public static final int acceptDealError=26;
	
	//拒绝订单
	public static final int refuseDealFinish=27;
	public static final int refuseDealError=28;
	
	//发送消息
	public static final int sendMessageFinish=29;
	public static final int sendMessageError=30;
	
	//获取消息列表
	public static final int getMessageListFinish=31;
	public static final int getMessageListError=32;
	
	//获取消息记录
	public static final int getMessageRecordsFinish=33;
	public static final int getMessageRecordsError=34;
	
	//根据条件搜索商品列表
	public static final int findSellByFilterFinish=35;
	public static final int findSellByFilterError=36;
	
	//获取某个sell的所有信息，包括卖书者的信息，展示在最终购买图书的页面
	public static final int getSellBySellidFinish=37;
	public static final int getSellBySellidError=38;
	
	//获取商品管理列表
	public static final int getSelledBookListFinish=39;
	public static final int getSelledBookListError=40;
	
	//获取 sell info
	public static final int getSellInfoFinish=41;
	public static final int getSellInfoError=42;
	
	//更新sell
	public static final int updateSellFinish=43;
	public static final int updateSellError=44;
	
	//删除sell的实物照片
	public static final int deleteSellPhotoFinish=45;
	public static final int deleteSellPhotoError=46;
	
	//删除sell
	public static final int deleteSellFinish=47;
	public static final int deleteSellError=48;
	
	//添加sell实物照片
	public static final int addSellPhotoFinish=49;
	public static final int addSellPhotoError=50;
	
	//获取当前位置信息
	public static final  int getCurrentLocationFinish=51;
	public static final int getCurrentLocationError=52;
	
	//请求打开GPS模块
	public static final int requireGPS=53;
	
	//获取附近图书列表
	public static final int getNearbyBookListFinish=54;
	public static final int getNearbyBookListError=55;
	
	
	
	private static final String URLBASE="http://rebook.sinaapp.com";
	//server url
	//登录的Url
	public static final String LoginUrl=URLBASE+"/user/usernameland.php";
	//获取历史记录url
	public static final String getHistoryUrl=URLBASE+"/deal/loadhistory.php";
	//注册用户
	public static final String registUrl=URLBASE+"/user/register.php";
	//上传照片
	public static final String uploadPhotoUrl=URLBASE+"/user/uploadphoto.php";
	//上传用户信息
	public static final String uploadUserDataUrl=URLBASE+"/user/userInfoUpdate.php";
	//获取用户信息
	public static final String getUserDataUrl=URLBASE+"/user/getuserdata.php";
	//修改用户密码
	public static final String changePwdUrl=URLBASE+"/user/changepassword.php";
	//根据isbn号码获取图书信息
	public static final String getBookInfoByISBNUrl=URLBASE+"/book/SearchBookByISBNForAndroid.php";
	//发布图书
	public static final String publishBookUrl=URLBASE+"/book/publishBook.php";
	//获取交易列表
	public static final String getDealListUrl=URLBASE+"/deal/getdeallist.php";
	//获取订单详细信息
	public static final String getDealDetailUrl=URLBASE+"/deal/getdealdetail.php";
	//订单操作
	public static final String dealOperationUrl=URLBASE+"/deal/dealhandle.php";
	//发送消息
	public static final String sendMessageUrl=URLBASE+"/message/sendmessage.php";
	//获取消息列表
	public static final String getMessageListUrl=URLBASE+"/message/getmessagelist.php";
	//获取消息记录
	public static final String getMessageRecordsUrl=URLBASE+"/message/getmessage.php";
	//根据条件搜索sell
	public static final String findSellByFilterUrl=URLBASE+"/purchase/findsellbyfilter.php";
	//获取某个sell的所有信息，包括卖书者的信息，展示在最终购买图书的页面
	public static final String getSellDetailUrl=URLBASE+"/purchase/findsellbysellid.php";
	//获取商品管理列表
	public static final String getSelledBookListUrl=URLBASE+"/book/findselledbook.php";
	//获取sell info
	public static final String getSellInfoUrl=URLBASE+"/sell/findsellinfo.php";
	//更新sell 
	public static final String updateSellUrl=URLBASE+"/sell/updatesell.php";
	//删除sell中的实物照片
	public static final String deleteSellPhotoUrl=URLBASE+"/sell/deletesellphoto.php";
	//删除sell
	public static final String deleteSellUrl=URLBASE+"/sell/deletesellbyid.php";
	//添加实物照片
	public static final String addSellPhotoUrl=URLBASE+"/sell/addsellphoto.php";
	//获取附近位置的图书
	public static final String getNearbyBookListUrl=URLBASE+"/purchase/findsellbydistance.php";
}
